package chatbot.entity;

import java.util.HashMap;
import java.util.Map;

/**
 定义script中每个step
 */
public class Step {
    private String stepName;

    private HashMap<String,String> answerStepNames=new HashMap<>();

    public void addAnswerStepNames(String answer,String stepName){
        answerStepNames.put(answer,stepName);
    }

    //通过set方法注入stepName
    public void setStepName(String stepName){
        this.stepName=stepName;
    }

    public String getStepName(){
        return stepName;
    }

    public HashMap<String,String> getAnswerStepNames(){
        return answerStepNames;
    }

    @Override
    public String toString() {
        return "Step{" +
                "stepName='" + stepName + '\'' +
                ", answerStepNames=" + answerStepNames +
                '}';
    }
}
